package com.hyy.blogtest.common.pojo.dadaobject;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

@Data
public class BlogInfo {


    //LocalDate只有日期
    // LocalDateTime既有日期又有时间
    //Date 在LocalDateTime的基础上加了时区

    @TableId(value="id",type = IdType.AUTO)//设置自增id 来自MyBatis PLUS
    private Integer id;

    private String title;
    private String content;
    private Integer userId;
    private Integer deleteFlag;
    private LocalDateTime createTime;
    private Date updateTime;
}

